package eightPuzzle;

import eightPuzzle.State.moveEmptyField;
import eightPuzzle.Strategy.Type;

public class TestDriver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		testCase1();
	}

	public static void testCase1() {

		int _size = 3;

		int[][] _start = new int[_size][_size];
		int[][] _endState = new int[_size][_size];

		_start[0][0] = 5;
		_start[0][1] = -1;
		_start[0][2] = 4;
		_start[1][0] = 6;
		_start[1][1] = 1;
		_start[1][2] = 8;
		_start[2][0] = 7;
		_start[2][1] = 3;
		_start[2][2] = 2;

		_endState[0][0] = 1;
		_endState[0][1] = 2;
		_endState[0][2] = 3;
		_endState[1][0] = 8;
		_endState[1][1] = -1;
		_endState[1][2] = 4;
		_endState[2][0] = 7;
		_endState[2][1] = 6;
		_endState[2][2] = 5;

		State startState = new State(_start);
		State endState = new State(_endState);

		System.out.println(startState);

		try {
			State st1;
			 st1 = startState.clone();
			st1.changeState(moveEmptyField.LEFT);
			System.out.println(st1);
		} catch (CloneNotSupportedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(startState);

		Game g = new Game(startState, endState, Type.NO_HEURISTIC);

	}
}
